Fix warnings due to -Wdeclaration-after-statement and -Wshadow.
if (rc_style->rc_properties)
{
- guint i;
-
for (i = 0; i < rc_style->rc_properties->len; i++)
{
GtkRcProperty *node = &g_array_index (rc_style->rc_properties, GtkRcProperty, i);
if (src->rc_properties)
{
- guint i;
-
for (i = 0; i < src->rc_properties->len; i++)
insert_rc_property (dest,
&g_array_index (src->rc_properties, GtkRcProperty, i),
for (l = priv->choosers; l; l = l->next)
{
- GtkRecentChooser *chooser = l->data;
-
- gtk_recent_chooser_unselect_uri (chooser, uri);
+ GtkRecentChooser *c = l->data;
+ gtk_recent_chooser_unselect_uri (c, uri);
}
}
{
GtkCssStyleProperty *prop = key;
PropertyData *data = value;
- GtkCssValue *value;
+ GtkCssValue *val;
guint id;
id = _gtk_css_style_property_get_id (prop);
if (!_gtk_css_lookup_is_missing (lookup, id))
continue;
- value = property_data_match_state (data, _gtk_css_matcher_get_state (matcher));
- if (value == NULL)
+ val = property_data_match_state (data, _gtk_css_matcher_get_state (matcher));
+ if (val == NULL)
continue;
- _gtk_css_lookup_set (lookup, id, NULL, value);
+ _gtk_css_lookup_set (lookup, id, NULL, val);
}
if (change)
{
GtkStylePropertiesPrivate *priv, *priv_to_merge;
GHashTableIter iter;
- gpointer key, value;
+ gpointer key, val;
g_return_if_fail (GTK_IS_STYLE_PROPERTIES (props));
g_return_if_fail (GTK_IS_STYLE_PROPERTIES (props_to_merge));
{
g_hash_table_iter_init (&iter, priv_to_merge->color_map);
- while (g_hash_table_iter_next (&iter, &key, &value))
+ while (g_hash_table_iter_next (&iter, &key, &val))
{
const gchar *name;
GtkSymbolicColor *color;
name = key;
- color = value;
+ color = val;
if (!replace &&
g_hash_table_lookup (priv->color_map, name))
/* Merge symbolic style properties */
g_hash_table_iter_init (&iter, priv_to_merge->properties);
- while (g_hash_table_iter_next (&iter, &key, &value))
+ while (g_hash_table_iter_next (&iter, &key, &val))
{
- PropertyData *prop_to_merge = value;
+ PropertyData *prop_to_merge = val;
PropertyData *prop;
guint i;
value->value != NULL)
{
GPtrArray *array, *array_to_merge;
- gint i;
/* Append the array, mainly thought
* for the gtk-key-bindings property
for (col = 0; col < priv->ncols; col++)
if (priv->cols[col].shrink)
{
- gint allocation = priv->cols[col].allocation;
+ gint alloc = priv->cols[col].allocation;
priv->cols[col].allocation = MAX (1, (gint) priv->cols[col].allocation - extra / nshrink);
- extra -= allocation - priv->cols[col].allocation;
+ extra -= alloc - priv->cols[col].allocation;
nshrink -= 1;
if (priv->cols[col].allocation < 2)
{
for (row = 0; row < priv->nrows; row++)
if (priv->rows[row].shrink)
{
- gint allocation = priv->rows[row].allocation;
+ gint alloc = priv->rows[row].allocation;
priv->rows[row].allocation = MAX (1, (gint) priv->rows[row].allocation - extra / nshrink);
- extra -= allocation - priv->rows[row].allocation;
+ extra -= alloc - priv->rows[row].allocation;
nshrink -= 1;
if (priv->rows[row].allocation < 2)
{
if (in_popup && !popup_accels)
{
/* don't show accels in popups */
- GtkWidget *child = gtk_bin_get_child (GTK_BIN (info->proxy));
- if (GTK_IS_ACCEL_LABEL (child))
- g_object_set (child, "accel-closure", NULL, NULL);
+ GtkWidget *c = gtk_bin_get_child (GTK_BIN (info->proxy));
+ if (GTK_IS_ACCEL_LABEL (c))
+ g_object_set (c, "accel-closure", NULL, NULL);
}
}